<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const bpmEventId = 'bpm_123456'
    const sendPostMessage = () => {
      window.postMessage({
        type: `BPM_OPINION_CUSTOM_@_${bpmEventId}`,
        data: {
          atClick: () => {
          }
        },
      })
    }
    const handleMessageEvent = (event) => {
      console.log(event)
    };
    window.addEventListener('message', handleMessageEvent);



    sendPostMessage();

  </script>
</body>

</html>